package com.lire.shop.dao;

import com.lire.shop.entity.Checklist;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface ChecklistRepository extends JpaRepository<Checklist,Long> {

    @Query("select  c from shop_checklist  c where c.oid in :oids")
    List<Checklist> findAllByOid(@Param("oids") List<Long> oids);
}
